# -*- coding:utf-8 -*-

from django.contrib import admin
from .models import Webcase, Webcasestep


# Register your models here.
class WebcasestepAdmin(admin.TabularInline):
    list_display = ['webcasename', 'webteststep', 'webtestobjname', 'webfindmethod', 'webevelement', 'weboptmethod',
                    'webassertdata',
                    'webtestresult', 'create_time', 'id', 'webcase']

    model = Webcasestep

    extra = 1


class WebcaseAdmin(admin.ModelAdmin):
    list_display = ['webcasename', 'webtestresult', 'create_time', 'id']

    inlines = [WebcasestepAdmin]


admin.site.register(Webcase, WebcaseAdmin)
# admin.site.register(Apis, ApisAdmin)  # 单一接口测试
